package com.dearbinge.data.service.impl.version;

import com.dearbinge.data.api.version.VersionService;
import com.dearbinge.data.dao.version.VersionMapper;
import com.dearbinge.data.pojo.version.Version;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service(value = "versionService")
public class VersionServicelmpl implements VersionService {
    @Resource
    private VersionMapper versionMapper;

    @Override
    public Integer insertAppVersion (Version version) {
        Integer integer = versionMapper.insertAppVersion(version);
        return integer;
    }

    @Override
    public Version getAppVersion(Integer type) {
        Version version = versionMapper.getAppVersion(type);
        return version;
    }


}
